<template>
    <div class="app-container">
        <div v-if="jslx">
            <homePage v-if="jslx !== '金融机构角色'"></homePage>
            <home  v-else></home>
        </div>
    </div>
</template>

<script>
    import {getRoleType} from '@/api/user.js';
    import homePage from './components/homePage.vue'
    import home from './components/home.vue'
    export default {
        components: {
            homePage,home
        },
        data() {
            return {
                jslx:'',
            }
        },
        created(){
            getRoleType().then(res=>{
                if(res.status){
                    this.jslx = res.data.fname;
                }
            })
        },
        mounted() {
            
        },
        computed: {
            
        },
        methods: {
            
        }
    }
</script>

<style scoped="scoped" lang="scss">
.app-container{
    border-radius: 0;
    padding: 0;
    margin: 0;
}
</style>
